package com.api.shopapi.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.api.shopapi.entity.MedicationScheduling;
import com.api.shopapi.entity.dto.MedicationSchedulingDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public interface MedicationSchedulingService {

    int insert(MedicationScheduling medicationScheduling, JSONObject JOscheduling);

    int updateByMedicationSchedulingCode(MedicationScheduling medicationScheduling,JSONObject JOscheduling);

    int deleteByMedicationSchedulingCode(String medicationSchedulingCode);

    MedicationScheduling getByMedicationSchedulingCode(String medicationSchedulingCode);

    MedicationScheduling getByTimeAndElderlyCode(Date time,String elderlyCode);

    PageInfo<MedicationSchedulingDTO> getPageList(int pageIndex, int pageSize, String institutionCode,String elderlyName,int status, String startTime, String endTime);


    PageInfo<MedicationSchedulingDTO> pageByGovCode(int pageIndex, int pageSize, String governmentCode);

}
